import { ADD_TO_CART,ADD_COUNT} from './mution_types'

export default {
    [ADD_TO_CART](state,payload){
        payload.count = 1;
        payload.check = true;

        state.goodsCarts.push(payload)
    },
    [ADD_COUNT](state,payload){
        payload.count ++ ;
    }
}